package nc.ui.test.locator;

import nc.bs.framework.common.NCLocator;
import nc.itf.test.imanager.IManager;
import nc.itf.test.spring.factory.ISpringFactory;


public class MyNCLocator {
	private MyNCLocator() {

	}

	private static MyNCLocator locator = new MyNCLocator();

	public static MyNCLocator getLocator() {
		return locator;
	}

	IManager iManager=null;
	
	public IManager getIManager() {
		if (iManager == null) {
			iManager = (IManager) NCLocator.getInstance().lookup(
					IManager.class.getName());
		}
		return iManager;
	}
	nc.itf.test.spring.factory.ISpringFactory iSpringFactory=null;
	public ISpringFactory getISpringFactory() {
		if (iSpringFactory == null) {
			iSpringFactory = (ISpringFactory) NCLocator.getInstance().lookup(
					ISpringFactory.class.getName());
		}
		return iSpringFactory;
	}
}
